package com.stu.boke.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.stu.boke.entity.Comment;

@Mapper
public interface CommentMapper {

	List<Comment> listRecentComment(@Param(value = "limit")int limit);

	void update(Comment comment);

	void deleteById(Integer id);

	List<Comment> listComment();

	void insert(Comment comment);

	Comment getCommentById(Integer id);

	List<Comment> listCommentByArticleId(@Param(value = "id")Integer id);

}
